import request from '@/utils/request'
//获取列表
export function listGuidanceList(query) {
  return request({
    url: '/archive/guidance/list',
    method: 'get',
    params: query
  })
}
//获取详情
export function guidanceDetail(query) {
    return request({
      url: '/archive/guidance/'+query.id,
      method: 'GET',
     
    })
  }

    //0 暂存  1提交  2反馈 


    //1未反馈  2反馈
//反馈内容
export function updateGuidanceList(data) {
    return request({
      url: '/archive/guidance',
      method: 'put',
      data: data
    })
  }


// 讨论列表
export function getDiscussList(query) {
    return request({
      url: '/archive/guidanceDiscuss/list',
      method: 'get',
      params: query
    })
  }
// 新增讨论
export function addDiscuss(data) {
    return request({
      url: '/archive/guidanceDiscuss',
      method: 'post',
      data: data
    })
  }